<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Secret Enib: Référence de l&#39;espace de nommage piece</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Secret Enib
   &#160;<span id="projectnumber">1.2 finale</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Recherche');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="pages.html"><span>Pages&#160;associées</span></a></li>
      <li class="current"><a href="namespaces.html"><span>Paquetages</span></a></li>
      <li><a href="files.html"><span>Fichiers</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Recherche" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="namespaces.html"><span>Paquetages</span></a></li>
      <li><a href="namespacemembers.html"><span>Fonctions&#160;de&#160;paquetage</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#func-members">Fonctions</a>  </div>
  <div class="headertitle">
<div class="title">Référence de l'espace de nommage piece</div>  </div>
</div><!--header-->
<div class="contents">

<p>gestion du type abstrait type "piece"  
<a href="#details">Plus de détails...</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="func-members"></a>
Fonctions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepiece.html#a7082fce71286636053d03ad61773411e">creerPiece</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructeur du type abtrait "piece".  <a href="#a7082fce71286636053d03ad61773411e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepiece.html#a942911da8d81ff2c42249db3bad56c96">dessinerPiece</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Affichage d'un piece.  <a href="#a942911da8d81ff2c42249db3bad56c96"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepiece.html#a4ce905f90a68416d5edd7f905627579a">ouverture</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Ouverture des porte d'une piece.  <a href="#a4ce905f90a68416d5edd7f905627579a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacepiece.html#a1401927d3b9727314395c799fb7da79e">numPiece</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recherche de potentiel pièce en vue de la gestion des collisions.  <a href="#a1401927d3b9727314395c799fb7da79e"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Description détaillée</h2>
<div class="textblock"><p>gestion du type abstrait type "piece" </p>
<dl class="author"><dt><b>Auteur:</b></dt><dd>Pierrick Troadec et Kawtar Hssain </dd></dl>
<dl class="date"><dt><b>Date:</b></dt><dd>28/12/2011 </dd></dl>
<dl class="version"><dt><b>Version:</b></dt><dd>1.2 </dd></dl>
<dl class="copyright"><dt><b>Copyright:</b></dt><dd>license BSD </dd></dl>
</div><hr/><h2>Documentation des fonctions</h2>
<a class="anchor" id="a7082fce71286636053d03ad61773411e"></a><!-- doxytag: member="piece::creerPiece" ref="a7082fce71286636053d03ad61773411e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="namespacepiece.html#a7082fce71286636053d03ad61773411e">piece.creerPiece</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>position</em> = <code>(0,0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>longueur</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>largeur</em> = <code>10</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>hauteur</em> = <code>3</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>texture</em> = <code>textureMur</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>portes</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>prof</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>nord</em> = <code>False</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>sud</em> = <code>False</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>est</em> = <code>False</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>ouest</em> = <code>False</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Constructeur du type abtrait "piece". </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">position</td><td>: position ou va etre cree la pièce </td></tr>
    <tr><td class="paramname">longueur</td><td>: longueur de la pièce </td></tr>
    <tr><td class="paramname">largeur</td><td>: largeur de la pièce </td></tr>
    <tr><td class="paramname">hauteur</td><td>: hauteur de la pièce </td></tr>
    <tr><td class="paramname">texture</td><td>: texture des murs de la piece </td></tr>
    <tr><td class="paramname">portes</td><td>: indication des ouverture à pratiquer dans les murs en fonction des flags:<ul>
<li>NORD</li>
<li>SUD</li>
<li>EST</li>
<li>OUEST </li>
</ul>
</td></tr>
    <tr><td class="paramname">prof</td><td>: professeur situé dans la pièce </td></tr>
    <tr><td class="paramname">nord</td><td>: indique si la porte nord est ouverte </td></tr>
    <tr><td class="paramname">sud</td><td>: indique si la porte sud est ouverte </td></tr>
    <tr><td class="paramname">est</td><td>: indique si la porte est est ouverte </td></tr>
    <tr><td class="paramname">ouest</td><td>: indique si la porte ouest est ouverte </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>piece : piece initialisé </dd></dl>

<p>Définition à la ligne <a class="el" href="piece_8py_source.html#l00043">43</a> du fichier <a class="el" href="piece_8py_source.html">piece.py</a>.</p>

</div>
</div>
<a class="anchor" id="a942911da8d81ff2c42249db3bad56c96"></a><!-- doxytag: member="piece::dessinerPiece" ref="a942911da8d81ff2c42249db3bad56c96" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="namespacepiece.html#a942911da8d81ff2c42249db3bad56c96">piece.dessinerPiece</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>piece</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>rep</em> = <code>1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Affichage d'un piece. </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">piece</td><td>: piece à afficher </td></tr>
    <tr><td class="paramname">rep</td><td>: répétition de la texture des murs </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="piece_8py_source.html#l00085">85</a> du fichier <a class="el" href="piece_8py_source.html">piece.py</a>.</p>

</div>
</div>
<a class="anchor" id="a1401927d3b9727314395c799fb7da79e"></a><!-- doxytag: member="piece::numPiece" ref="a1401927d3b9727314395c799fb7da79e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="namespacepiece.html#a1401927d3b9727314395c799fb7da79e">piece.numPiece</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>batiment</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recherche de potentiel pièce en vue de la gestion des collisions. </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>: position en abscisse du joueur </td></tr>
    <tr><td class="paramname">z</td><td>: position en ordonnee du joueur </td></tr>
    <tr><td class="paramname">batiment</td><td>: liste des différentes pièces constituant le bâtiment </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Renvoie:</b></dt><dd>compteur :<ul>
<li>si le joueur se trouve dans une pièce on retourne son id</li>
<li>sinon on retourne 99 </li>
</ul>
</dd></dl>

<p>Définition à la ligne <a class="el" href="piece_8py_source.html#l00159">159</a> du fichier <a class="el" href="piece_8py_source.html">piece.py</a>.</p>

</div>
</div>
<a class="anchor" id="a4ce905f90a68416d5edd7f905627579a"></a><!-- doxytag: member="piece::ouverture" ref="a4ce905f90a68416d5edd7f905627579a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def <a class="el" href="namespacepiece.html#a4ce905f90a68416d5edd7f905627579a">piece.ouverture</a> </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>piece</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Ouverture des porte d'une piece. </p>
<dl class="params"><dt><b>Paramètres:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">piece</td><td>: pièce dont les portes vont être ouverte </td></tr>
  </table>
  </dd>
</dl>

<p>Définition à la ligne <a class="el" href="piece_8py_source.html#l00147">147</a> du fichier <a class="el" href="piece_8py_source.html">piece.py</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tout</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Espaces de nommage</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Fichiers</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Fonctions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Généré le Vendredi Décembre 30 2011 00:45:19 pour Secret Enib par &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
